package com.sjms._07_结构_装饰者模式;

/**
 * 加蛋
 */
public class DecorateAddDan extends ADecorate {

    DecorateAddDan(APizza abstractPizza) {
        super(abstractPizza);
    }

    @Override
    String food() {
        return aPizza.food()+"【+蛋】";
    }

    @Override
    int price() {
        return aPizza.price()+1;
    }
}
